home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / DEMONSTR / MATHVIEW.ZIP / CHOL.M < prev    next >
Text File  |  1993-03-23  |  325b  |  12 lines

  1. function y=chol(x)
  2. %y=chol(x)
  3. %x - input matrix (should be symmetric, lower part is ignored)
  4. %y - Cholesky decomposition of x
  5.  
  6. %       S.Halevy 7/31/92
  7. %       Copyright (c) 1992 by the MathWizards
  8.  
  9. z = triu(x)+triu(x,1).';
  10. y = _chol(z);   % returns the chol factorization and the permutation index
  11. y = triu(y).';
  12.